Create a class domain() for domain management.
